<template>
  <div class="appWrap">
    <h1>我是App组件</h1>
    <input type="text" ref="oIpt" />
    <button @click="handler">获取input</button>
    <Count ref="count" :count="count" v-bind="news" />
  </div>
</template>

<script>
import Count from "./components/Count.vue";
export default {
  name: "APP",
  components: { Count },
  methods: {
    handler() {
      console.log(this.$refs);
    },
  },
  data() {
    return {
      count: 5,
      news: {
        wDay: "周二",
        todo: "发工资",
        // feel: "开心",
      },
    };
  },
};
</script>

<style scoped>
.appWrap {
  border: 3px solid #666;
}
.appWrap >>> .content {
  background: #bbb;
}
</style>